import { observer, useField, useParentForm } from '@formily/react';
import React, { FC, useEffect, useState } from 'react';
import { Space, Button } from 'antd';

const HandleBtns: FC = observer(() => {
  const field = useField<any>();
  // const schemaField = createSchemaField();
  const form = useParentForm();
  const getFormValue = async () => {
    const value = await form.submit();
    console.log(value);
  };
  return (
    <Space>
      <Button onClick={getFormValue}>获取数据</Button>
      <Button>。。。</Button>
    </Space>
  );
});
export default HandleBtns;
